import Cal from '@/views/cal.vue'
import Cart from '@/views/cart.vue'
import Home from '@/views/home.vue'
import Index from '@/views/index.vue'
import Lb from '@/views/lb.vue'
import My from '@/views/my.vue'
import Ss from '@/views/ss.vue'
import Xq from '@/views/xq.vue'
import Zf from '@/views/zf.vue'

import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/index', name: 'index', component: Index, children:[

       { path: 'home', name: 'home', component: Home, },
       { path: 'cart', name: 'cart', component: Cart, },
       { path: 'cal', name: 'cal', component: Cal, },
       { path: 'my', name: 'my', component: My, },
       { path: 'zf', name: 'zf', component:Zf, },
       

    ] },
             { path: '/lb/:query', name: 'lb', component: Lb, },
             { path: '/xq/:goods_id', name: 'xq', component: Xq, },
             { path: '/ss', name: 'ss', component: Ss, },

            
  ],
})

export default router
